home *** CD-ROM | disk | FTP | other *** search
/ The Frank Lloyd Wright Companion / The Frank Lloyd Wright Companion.iso / fullmacapps / macfllwc_small.sit / MacFLLWC_Small / Canvas Tools / Hatch Patterns.rsrc / MDEF_2000_HatchMDEF.txt < prev    next >
Text File  |  1995-05-12  |  44KB  |  805 lines

  1. start:
  2. 00000000  600E                     bra        +0x10 /* 00000010 */
  3. 00000002  0000 4D44                ori.b      D0, 0x44 /* 'D' */
  4. 00000006  4546                     chk.w      D2, D6
  5. 00000008  07D0                     bset       [A0], D3
  6. 0000000A  0000 0000                ori.b      D0, 0x0
  7. 0000000E  0000 41FA                ori.b      D0, 0xFA
  8. // begin alternate branch 00000010-00000014
  9. label00000010:
  10. 00000010  41FA FFEE                lea.l      A0, [PC - 0x12 /* 00000000, value 0x600E0000 */]
  11. // end alternate branch 00000010-00000014
  12. label00000010: // (misaligned)
  13. 00000012  FFEE                     .extension 0xFEE // unimplemented
  14. 00000014  4E71                     nop
  15. 00000016  4E71                     nop
  16. 00000018  6000 01C6                bra        +0x1C8 /* 000001E0 */
  17. 0000001C  4EFA 001E                jmp        [PC + 0x1E /* 0000003C */]
  18. 00000020  4EFA 002E                jmp        [PC + 0x2E /* 00000050 */]
  19. fn00000024:
  20. 00000024  4EFA 003E                jmp        [PC + 0x3E /* 00000064 */]
  21. 00000028  4EFA 0056                jmp        [PC + 0x56 /* 00000080 */]
  22. 0000002C  4EFA 0088                jmp        [PC + 0x88 /* 000000B6 */]
  23. 00000030  4EFA 00A4                jmp        [PC + 0xA4 /* 000000D6 */]
  24. 00000034  4EFA 00C2                jmp        [PC + 0xC2 /* 000000F8 */]
  25. 00000038  4EFA 00DE                jmp        [PC + 0xDE /* 00000118 */]
  26. label0000003C:
  27. 0000003C  205F                     movea.l    A0, [A7]+
  28. 0000003E  3218                     move.w     D1, [A0]+
  29. label00000040:
  30. 00000040  3418                     move.w     D2, [A0]+
  31. 00000042  B058                     cmp.w      D0, [A0]+
  32. 00000044  57C9 FFFA                dbeq       D1, -0x8 /* 00000040 */
  33. 00000048  4A42                     tst.w      D2
  34. label0000004A:
  35. 0000004A  67FE                     beq        -0x0 /* 0000004A */
  36. 0000004C  4EF0 20FC                jmp        [A0 + D2.w - 0x4]
  37. label00000050:
  38. 00000050  205F                     movea.l    A0, [A7]+
  39. 00000052  3218                     move.w     D1, [A0]+
  40. label00000054:
  41. 00000054  3418                     move.w     D2, [A0]+
  42. 00000056  B098                     cmp.l      D0, [A0]+
  43. 00000058  57C9 FFFA                dbeq       D1, -0x8 /* 00000054 */
  44. 0000005C  4A42                     tst.w      D2
  45. label0000005E:
  46. 0000005E  67FE                     beq        -0x0 /* 0000005E */
  47. 00000060  4EF0 20FA                jmp        [A0 + D2.w - 0x6]
  48. label00000064:
  49. 00000064  205F                     movea.l    A0, [A7]+
  50. 00000066  3218                     move.w     D1, [A0]+
  51. 00000068  3418                     move.w     D2, [A0]+
  52. 0000006A  B042                     cmp.w      D0, D2
  53. 0000006C  6E0A                     bgt        +0xC /* 00000078 */
  54. 0000006E  9041                     sub.w      D0, D1
  55. 00000070  6D06                     blt        +0x8 /* 00000078 */
  56. 00000072  D040                     add.w      D0, D0
  57. 00000074  41F0 0002                lea.l      A0, [A0 + D0.w + 0x2]
  58. label00000078:
  59. 00000078  3010                     move.w     D0, [A0]
  60. label0000007A:
  61. 0000007A  67FE                     beq        -0x0 /* 0000007A */
  62. 0000007C  4EF0 0000                jmp        [A0 + D0.w]
  63. label00000080:
  64. 00000080  202F 0004                move.l     D0, [A7 + 0x4]
  65. 00000084  2F41 0004                move.l     [A7 + 0x4], D1
  66. 00000088  222F 0008                move.l     D1, [A7 + 0x8]
  67. 0000008C  2F5F 0004                move.l     [A7 + 0x4], [A7]+
  68. 00000090  48E7 3C00                movem.l    -[A7], D2,D3,D4,D5
  69. 00000094  2400                     move.l     D2, D0
  70. 00000096  2601                     move.l     D3, D1
  71. 00000098  4842                     swap.w     D2
  72. 0000009A  C4C3                     mulu.w     D2, D3
  73. 0000009C  2800                     move.l     D4, D0
  74. 0000009E  2A01                     move.l     D5, D1
  75. 000000A0  4845                     swap.w     D5
  76. 000000A2  C8C5                     mulu.w     D4, D5
  77. 000000A4  D444                     add.w      D2, D4
  78. 000000A6  4842                     swap.w     D2
  79. 000000A8  4242                     clr.w      D2
  80. 000000AA  C0C1                     mulu.w     D0, D1
  81. 000000AC  D082                     add.l      D0, D2
  82. 000000AE  4CDF 003C                movem.l    D2,D3,D4,D5, [A7]+
  83. 000000B2  221F                     move.l     D1, [A7]+
  84. 000000B4  4E75                     rts
  85. label000000B6:
  86. 000000B6  202F 0004                move.l     D0, [A7 + 0x4]
  87. 000000BA  2F41 0004                move.l     [A7 + 0x4], D1
  88. 000000BE  222F 0008                move.l     D1, [A7 + 0x8]
  89. 000000C2  2F5F 0004                move.l     [A7 + 0x4], [A7]+
  90. 000000C6  48E7 3100                movem.l    -[A7], D2,D3,D7
  91. 000000CA  4EBA 009C                jsr        [PC + 0x9C /* 00000168 */]
  92. 000000CE  4CDF 008C                movem.l    D2,D3,D7, [A7]+
  93. 000000D2  221F                     move.l     D1, [A7]+
  94. 000000D4  4E75                     rts
  95. label000000D6:
  96. 000000D6  202F 0004                move.l     D0, [A7 + 0x4]
  97. 000000DA  2F41 0004                move.l     [A7 + 0x4], D1
  98. 000000DE  222F 0008                move.l     D1, [A7 + 0x8]
  99. 000000E2  2F5F 0004                move.l     [A7 + 0x4], [A7]+
  100. 000000E6  48E7 3100                movem.l    -[A7], D2,D3,D7
  101. 000000EA  4EBA 007C                jsr        [PC + 0x7C /* 00000168 */]
  102. 000000EE  2001                     move.l     D0, D1
  103. 000000F0  4CDF 008C                movem.l    D2,D3,D7, [A7]+
  104. 000000F4  221F                     move.l     D1, [A7]+
  105. 000000F6  4E75                     rts
  106. label000000F8:
  107. 000000F8  202F 0004                move.l     D0, [A7 + 0x4]
  108. 000000FC  2F41 0004                move.l     [A7 + 0x4], D1
  109. 00000100  222F 0008                move.l     D1, [A7 + 0x8]
  110. 00000104  2F5F 0004                move.l     [A7 + 0x4], [A7]+
  111. 00000108  48E7 3100                movem.l    -[A7], D2,D3,D7
  112. 0000010C  4EBA 002C                jsr        [PC + 0x2C /* 0000013A */]
  113. 00000110  4CDF 008C                movem.l    D2,D3,D7, [A7]+
  114. 00000114  221F                     move.l     D1, [A7]+
  115. 00000116  4E75                     rts
  116. label00000118:
  117. 00000118  202F 0004                move.l     D0, [A7 + 0x4]
  118. 0000011C  2F41 0004                move.l     [A7 + 0x4], D1
  119. 00000120  222F 0008                move.l     D1, [A7 + 0x8]
  120. 00000124  2F5F 0004                move.l     [A7 + 0x4], [A7]+
  121. 00000128  48E7 3100                movem.l    -[A7], D2,D3,D7
  122. 0000012C  4EBA 000C                jsr        [PC + 0xC /* 0000013A */]
  123. 00000130  2001                     move.l     D0, D1
  124. 00000132  4CDF 008C                movem.l    D2,D3,D7, [A7]+
  125. 00000136  221F                     move.l     D1, [A7]+
  126. 00000138  4E75                     rts
  127. fn0000013A:
  128. 0000013A  4A80                     tst.l      D0
  129. 0000013C  6A1C                     bpl        +0x1E /* 0000015A */
  130. 0000013E  4A81                     tst.l      D1
  131. 00000140  6A0C                     bpl        +0xE /* 0000014E */
  132. 00000142  4480                     neg.l      D0
  133. 00000144  4481                     neg.l      D1
  134. 00000146  4EBA 0020                jsr        [PC + 0x20 /* 00000168 */]
  135. 0000014A  4481                     neg.l      D1
  136. 0000014C  4E75                     rts
  137. label0000014E:
  138. 0000014E  4480                     neg.l      D0
  139. 00000150  4EBA 0016                jsr        [PC + 0x16 /* 00000168 */]
  140. 00000154  4480                     neg.l      D0
  141. 00000156  4481                     neg.l      D1
  142. 00000158  4E75                     rts
  143. label0000015A:
  144. 0000015A  4A81                     tst.l      D1
  145. 0000015C  6A0A                     bpl        +0xC /* 00000168 */
  146. 0000015E  4481                     neg.l      D1
  147. 00000160  4EBA 0006                jsr        [PC + 0x6 /* 00000168 */]
  148. 00000164  4480                     neg.l      D0
  149. 00000166  4E75                     rts
  150. fn00000168:
  151. 00000168  2E3C 0000 FFFF           move.l     D7, 0xFFFF
  152. 0000016E  B280                     cmp.l      D1, D0
  153. 00000170  6306                     bls        +0x8 /* 00000178 */
  154. 00000172  2200                     move.l     D1, D0
  155. 00000174  7000                     moveq.l    D0, 0x00
  156. 00000176  4E75                     rts
  157. label00000178:
  158. 00000178  B087                     cmp.l      D0, D7
  159. 0000017A  620C                     bhi        +0xE /* 00000188 */
  160. 0000017C  80C1                     divu.w     D0, D1
  161. 0000017E  4840                     swap.w     D0
  162. 00000180  3200                     move.w     D1, D0
  163. 00000182  4240                     clr.w      D0
  164. 00000184  4840                     swap.w     D0
  165. 00000186  4E75                     rts
  166. label00000188:
  167. 00000188  B287                     cmp.l      D1, D7
  168. 0000018A  621A                     bhi        +0x1C /* 000001A6 */
  169. 0000018C  2E00                     move.l     D7, D0
  170. 0000018E  4240                     clr.w      D0
  171. 00000190  4840                     swap.w     D0
  172. 00000192  80C1                     divu.w     D0, D1
  173. 00000194  4840                     swap.w     D0
  174. 00000196  4847                     swap.w     D7
  175. 00000198  3E00                     move.w     D7, D0
  176. 0000019A  4847                     swap.w     D7
  177. 0000019C  8EC1                     divu.w     D7, D1
  178. 0000019E  3007                     move.w     D0, D7
  179. 000001A0  4847                     swap.w     D7
  180. 000001A2  3207                     move.w     D1, D7
  181. 000001A4  4E75                     rts
  182. label000001A6:
  183. 000001A6  2400                     move.l     D2, D0
  184. 000001A8  2601                     move.l     D3, D1
  185. label000001AA:
  186. 000001AA  E288                     lsr        D0, 1
  187. 000001AC  E289                     lsr        D1, 1
  188. 000001AE  B287                     cmp.l      D1, D7
  189. 000001B0  62F8                     bhi        -0x6 /* 000001AA */
  190. 000001B2  80C1                     divu.w     D0, D1
  191. 000001B4  C087                     and.l      D0, D7
  192. label000001B6:
  193. 000001B6  3203                     move.w     D1, D3
  194. 000001B8  C2C0                     mulu.w     D1, D0
  195. 000001BA  2E03                     move.l     D7, D3
  196. 000001BC  4847                     swap.w     D7
  197. 000001BE  CEC0                     mulu.w     D7, D0
  198. 000001C0  4847                     swap.w     D7
  199. 000001C2  D287                     add.l      D1, D7
  200. 000001C4  6508                     bcs        +0xA /* 000001CE */
  201. 000001C6  9282                     sub.l      D1, D2
  202. 000001C8  6204                     bhi        +0x6 /* 000001CE */
  203. 000001CA  4481                     neg.l      D1
  204. 000001CC  4E75                     rts
  205. label000001CE:
  206. 000001CE  5340                     subq.w     D0, 1
  207. 000001D0  60E4                     bra        -0x1A /* 000001B6 */
  208. 000001D2  0050 0001                ori.w      [A0], 0x1
  209. fn000001D6:
  210. 000001D6  6104                     bsr        +0x6 /* 000001DC */
  211. 000001D8  0000 0000                ori.b      D0, 0x0
  212. fn000001DC:
  213. 000001DC  225F                     movea.l    A1, [A7]+
  214. 000001DE  4E75                     rts
  215. label000001E0:
  216. 000001E0  4E56 FFD0                link       A6, -0x0030
  217. 000001E4  2F0A                     move.l     -[A7], A2
  218. 000001E6  4EBA FFEE                jsr        [PC - 0x12 /* 000001D6 */]
  219. 000001EA  2288                     move.l     [A1], A0
  220. 000001EC  2F0C                     move.l     -[A7], A4
  221. 000001EE  4EBA FFE6                jsr        [PC - 0x1A /* 000001D6 */]
  222. 000001F2  2851                     movea.l    A4, [A1]
  223. 000001F4  302E 0018                move.w     D0, [A6 + 0x18]
  224. 000001F8  4EBA FE2A                jsr        [PC - 0x1D6 /* 00000024 */]
  225. 000001FC  0000 0003                ori.b      D0, 0x3
  226. 00000200  037C 00CC                bchg       0xCC, D1
  227. 00000204  01B4 0004                bclr       [A4 + D0.w + 0x4], D0
  228. 00000208  006C 2F2E 0014           ori.w      [A4 + 0x14], 0x2F2E /* '/.' */
  229. 0000020E  4EBA 037A                jsr        [PC + 0x37A /* 0000058A */]
  230. 00000212  588F                     addq.l     A7, 4
  231. 00000214  2D40 FFFC                move.l     [A6 - 0x4], D0
  232. 00000218  4A80                     tst.l      D0
  233. 0000021A  6740                     beq        +0x42 /* 0000025C */
  234. 0000021C  206E 0014                movea.l    A0, [A6 + 0x14]
  235. 00000220  226E FFFC                movea.l    A1, [A6 - 0x4]
  236. 00000224  246E FFFC                movea.l    A2, [A6 - 0x4]
  237. 00000228  2452                     movea.l    A2, [A2]
  238. 0000022A  2251                     movea.l    A1, [A1]
  239. 0000022C  3029 0008                move.w     D0, [A1 + 0x8]
  240. 00000230  906A 0004                sub.w      D0, [A2 + 0x4]
  241. 00000234  2050                     movea.l    A0, [A0]
  242. 00000236  3140 0002                move.w     [A0 + 0x2], D0
  243. 0000023A  206E 0014                movea.l    A0, [A6 + 0x14]
  244. 0000023E  226E FFFC                movea.l    A1, [A6 - 0x4]
  245. 00000242  246E FFFC                movea.l    A2, [A6 - 0x4]
  246. 00000246  2452                     movea.l    A2, [A2]
  247. 00000248  2251                     movea.l    A1, [A1]
  248. 0000024A  3029 0006                move.w     D0, [A1 + 0x6]
  249. 0000024E  906A 0002                sub.w      D0, [A2 + 0x2]
  250. 00000252  2050                     movea.l    A0, [A0]
  251. 00000254  3140 0004                move.w     [A0 + 0x4], D0
  252. 00000258  6000 0322                bra        +0x324 /* 0000057C */
  253. label0000025C:
  254. 0000025C  206E 0014                movea.l    A0, [A6 + 0x14]
  255. 00000260  2050                     movea.l    A0, [A0]
  256. 00000262  4268 0002                clr.w      [A0 + 0x2]
  257. 00000266  206E 0014                movea.l    A0, [A6 + 0x14]
  258. 0000026A  2050                     movea.l    A0, [A0]
  259. 0000026C  4268 0004                clr.w      [A0 + 0x4]
  260. 00000270  6000 030A                bra        +0x30C /* 0000057C */
  261. 00000274  206E 0008                movea.l    A0, [A6 + 0x8]
  262. 00000278  3950 0858                move.w     [A4 + 0x858], [A0]
  263. 0000027C  302E 000E                move.w     D0, [A6 + 0xE]
  264. 00000280  0640 0012                addi.w     D0, 0x12
  265. 00000284  206E 0010                movea.l    A0, [A6 + 0x10]
  266. 00000288  3140 0004                move.w     [A0 + 0x4], D0
  267. 0000028C  206E 0010                movea.l    A0, [A6 + 0x10]
  268. 00000290  3080                     move.w     [A0], D0
  269. 00000292  206E 0010                movea.l    A0, [A6 + 0x10]
  270. 00000296  302E 000C                move.w     D0, [A6 + 0xC]
  271. 0000029A  3140 0006                move.w     [A0 + 0x6], D0
  272. 0000029E  206E 0010                movea.l    A0, [A6 + 0x10]
  273. 000002A2  3140 0002                move.w     [A0 + 0x2], D0
  274. 000002A6  206E 0014                movea.l    A0, [A6 + 0x14]
  275. 000002AA  2050                     movea.l    A0, [A0]
  276. 000002AC  226E 0010                movea.l    A1, [A6 + 0x10]
  277. 000002B0  3028 0004                move.w     D0, [A0 + 0x4]
  278. 000002B4  D169 0004                add.w      [A1 + 0x4], D0
  279. 000002B8  206E 0014                movea.l    A0, [A6 + 0x14]
  280. 000002BC  2050                     movea.l    A0, [A0]
  281. 000002BE  226E 0010                movea.l    A1, [A6 + 0x10]
  282. 000002C2  3028 0002                move.w     D0, [A0 + 0x2]
  283. 000002C6  D169 0006                add.w      [A1 + 0x6], D0
  284. 000002CA  6000 02B0                bra        +0x2B2 /* 0000057C */
  285. 000002CE  2F2E 0014                move.l     -[A7], [A6 + 0x14]
  286. 000002D2  4EBA 02B6                jsr        [PC + 0x2B6 /* 0000058A */]
  287. 000002D6  588F                     addq.l     A7, 4
  288. 000002D8  2D40 FFFC                move.l     [A6 - 0x4], D0
  289. 000002DC  4A80                     tst.l      D0
  290. 000002DE  670A                     beq        +0xC /* 000002EA */
  291. 000002E0  2F2E FFFC                move.l     -[A7], [A6 - 0x4]
  292. 000002E4  2F2E 0010                move.l     -[A7], [A6 + 0x10]
  293. 000002E8  A8F6                     syscall    DrawPicture
  294. label000002EA:
  295. 000002EA  4A6C 0858                tst.w      [A4 + 0x858]
  296. 000002EE  6700 028C                beq        +0x28E /* 0000057C */
  297. 000002F2  486E FFD0                pea.l      [A6 - 0x30]
  298. 000002F6  A898                     syscall    GetPenState
  299. 000002F8  A89E                     syscall    PenNormal
  300. 000002FA  206E 0014                movea.l    A0, [A6 + 0x14]
  301. 000002FE  2050                     movea.l    A0, [A0]
  302. 00000300  3028 0002                move.w     D0, [A0 + 0x2]
  303. 00000304  5540                     subq.w     D0, 2
  304. 00000306  48C0                     ext.l      D0
  305. 00000308  81FC 0043                divs.w     D0, 0x43 /* 'C' */
  306. 0000030C  3D40 FFEA                move.w     [A6 - 0x16], D0
  307. 00000310  4A6E FFEA                tst.w      [A6 - 0x16]
  308. 00000314  6700 0098                beq        +0x9A /* 000003AE */
  309. 00000318  302C 0858                move.w     D0, [A4 + 0x858]
  310. 0000031C  5340                     subq.w     D0, 1
  311. 0000031E  48C0                     ext.l      D0
  312. 00000320  81EE FFEA                divs.w     D0, [A6 - 0x16]
  313. 00000324  4840                     swap.w     D0
  314. 00000326  3D40 FFE6                move.w     [A6 - 0x1A], D0
  315. 0000032A  302C 0858                move.w     D0, [A4 + 0x858]
  316. 0000032E  5340                     subq.w     D0, 1
  317. 00000330  48C0                     ext.l      D0
  318. 00000332  81EE FFEA                divs.w     D0, [A6 - 0x16]
  319. 00000336  3D40 FFE4                move.w     [A6 - 0x1C], D0
  320. 0000033A  206E 0010                movea.l    A0, [A6 + 0x10]
  321. 0000033E  302E FFE4                move.w     D0, [A6 - 0x1C]
  322. 00000342  C1FC 0023                muls.w     D0, 0x23 /* '#' */
  323. 00000346  D050                     add.w      D0, [A0]
  324. 00000348  5240                     addq.w     D0, 1
  325. 0000034A  3D40 FFF0                move.w     [A6 - 0x10], D0
  326. 0000034E  3D40 FFEC                move.w     [A6 - 0x14], D0
  327. 00000352  206E 0010                movea.l    A0, [A6 + 0x10]
  328. 00000356  302E FFE6                move.w     D0, [A6 - 0x1A]
  329. 0000035A  C1FC 0043                muls.w     D0, 0x43 /* 'C' */
  330. 0000035E  D068 0002                add.w      D0, [A0 + 0x2]
  331. 00000362  5240                     addq.w     D0, 1
  332. 00000364  3D40 FFF2                move.w     [A6 - 0xE], D0
  333. 00000368  3D40 FFEE                move.w     [A6 - 0x12], D0
  334. 0000036C  066E 0023 FFF0           addi.w     [A6 - 0x10], 0x23 /* '#' */
  335. 00000372  066E 0043 FFF2           addi.w     [A6 - 0xE], 0x43 /* 'C' */
  336. 00000378  302E FFEE                move.w     D0, [A6 - 0x12]
  337. 0000037C  5440                     addq.w     D0, 2
  338. 0000037E  3F00                     move.w     -[A7], D0
  339. 00000380  302E FFF0                move.w     D0, [A6 - 0x10]
  340. 00000384  5740                     subq.w     D0, 3
  341. 00000386  3F00                     move.w     -[A7], D0
  342. 00000388  A893                     syscall    MoveTo
  343. 0000038A  302E FFF2                move.w     D0, [A6 - 0xE]
  344. 0000038E  5740                     subq.w     D0, 3
  345. 00000390  3F00                     move.w     -[A7], D0
  346. 00000392  302E FFF0                move.w     D0, [A6 - 0x10]
  347. 00000396  5740                     subq.w     D0, 3
  348. 00000398  3F00                     move.w     -[A7], D0
  349. 0000039A  A891                     syscall    LineTo
  350. 0000039C  302E FFF2                move.w     D0, [A6 - 0xE]
  351. 000003A0  5740                     subq.w     D0, 3
  352. 000003A2  3F00                     move.w     -[A7], D0
  353. 000003A4  302E FFEC                move.w     D0, [A6 - 0x14]
  354. 000003A8  5440                     addq.w     D0, 2
  355. 000003AA  3F00                     move.w     -[A7], D0
  356. 000003AC  A891                     syscall    LineTo
  357. label000003AE:
  358. 000003AE  486E FFD0                pea.l      [A6 - 0x30]
  359. 000003B2  A899                     syscall    SetPenState
  360. 000003B4  6000 01C6                bra        +0x1C8 /* 0000057C */
  361. 000003B8  206E 0014                movea.l    A0, [A6 + 0x14]
  362. 000003BC  2050                     movea.l    A0, [A0]
  363. 000003BE  3028 0002                move.w     D0, [A0 + 0x2]
  364. 000003C2  5540                     subq.w     D0, 2
  365. 000003C4  48C0                     ext.l      D0
  366. 000003C6  81FC 0043                divs.w     D0, 0x43 /* 'C' */
  367. 000003CA  3D40 FFEA                move.w     [A6 - 0x16], D0
  368. 000003CE  206E 0014                movea.l    A0, [A6 + 0x14]
  369. 000003D2  2050                     movea.l    A0, [A0]
  370. 000003D4  3028 0004                move.w     D0, [A0 + 0x4]
  371. 000003D8  5540                     subq.w     D0, 2
  372. 000003DA  48C0                     ext.l      D0
  373. 000003DC  81FC 0023                divs.w     D0, 0x23 /* '#' */
  374. 000003E0  3D40 FFE8                move.w     [A6 - 0x18], D0
  375. 000003E4  4A6E FFEA                tst.w      [A6 - 0x16]
  376. 000003E8  6706                     beq        +0x8 /* 000003F0 */
  377. 000003EA  4A6E FFE8                tst.w      [A6 - 0x18]
  378. 000003EE  660A                     bne        +0xC /* 000003FA */
  379. label000003F0:
  380. 000003F0  206E 0008                movea.l    A0, [A6 + 0x8]
  381. 000003F4  4250                     clr.w      [A0]
  382. 000003F6  6000 0184                bra        +0x186 /* 0000057C */
  383. label000003FA:
  384. 000003FA  486E FFD0                pea.l      [A6 - 0x30]
  385. 000003FE  A898                     syscall    GetPenState
  386. 00000400  A89E                     syscall    PenNormal
  387. 00000402  3F3C 000A                move.w     -[A7], 0xA /* '\n' */
  388. 00000406  A89C                     syscall    PenMode
  389. 00000408  206E 0010                movea.l    A0, [A6 + 0x10]
  390. 0000040C  3010                     move.w     D0, [A0]
  391. 0000040E  5240                     addq.w     D0, 1
  392. 00000410  3D40 FFF4                move.w     [A6 - 0xC], D0
  393. 00000414  206E 0010                movea.l    A0, [A6 + 0x10]
  394. 00000418  3028 0002                move.w     D0, [A0 + 0x2]
  395. 0000041C  5240                     addq.w     D0, 1
  396. 0000041E  3D40 FFF6                move.w     [A6 - 0xA], D0
  397. 00000422  206E 0010                movea.l    A0, [A6 + 0x10]
  398. 00000426  3028 0004                move.w     D0, [A0 + 0x4]
  399. 0000042A  5340                     subq.w     D0, 1
  400. 0000042C  3D40 FFF8                move.w     [A6 - 0x8], D0
  401. 00000430  206E 0010                movea.l    A0, [A6 + 0x10]
  402. 00000434  3028 0006                move.w     D0, [A0 + 0x6]
  403. 00000438  5340                     subq.w     D0, 1
  404. 0000043A  3D40 FFFA                move.w     [A6 - 0x6], D0
  405. 0000043E  4267                     clr.w      -[A7]
  406. 00000440  2F2E 000C                move.l     -[A7], [A6 + 0xC]
  407. 00000444  486E FFF4                pea.l      [A6 - 0xC]
  408. 00000448  A8AD                     syscall    PtInRect
  409. 0000044A  101F                     move.b     D0, [A7]+
  410. 0000044C  4A00                     tst.b      D0
  411. 0000044E  6742                     beq        +0x44 /* 00000492 */
  412. 00000450  206E 0010                movea.l    A0, [A6 + 0x10]
  413. 00000454  302E 000E                move.w     D0, [A6 + 0xE]
  414. 00000458  9068 0002                sub.w      D0, [A0 + 0x2]
  415. 0000045C  5340                     subq.w     D0, 1
  416. 0000045E  48C0                     ext.l      D0
  417. 00000460  81FC 0043                divs.w     D0, 0x43 /* 'C' */
  418. 00000464  3D40 FFE6                move.w     [A6 - 0x1A], D0
  419. 00000468  206E 0010                movea.l    A0, [A6 + 0x10]
  420. 0000046C  302E 000C                move.w     D0, [A6 + 0xC]
  421. 00000470  9050                     sub.w      D0, [A0]
  422. 00000472  5340                     subq.w     D0, 1
  423. 00000474  48C0                     ext.l      D0
  424. 00000476  81FC 0023                divs.w     D0, 0x23 /* '#' */
  425. 0000047A  3D40 FFE4                move.w     [A6 - 0x1C], D0
  426. 0000047E  302E FFE4                move.w     D0, [A6 - 0x1C]
  427. 00000482  C1EE FFEA                muls.w     D0, [A6 - 0x16]
  428. 00000486  D06E FFE6                add.w      D0, [A6 - 0x1A]
  429. 0000048A  5240                     addq.w     D0, 1
  430. 0000048C  3D40 FFE2                move.w     [A6 - 0x1E], D0
  431. 00000490  6004                     bra        +0x6 /* 00000496 */
  432. label00000492:
  433. 00000492  426E FFE2                clr.w      [A6 - 0x1E]
  434. label00000496:
  435. 00000496  206E 0008                movea.l    A0, [A6 + 0x8]
  436. 0000049A  302E FFE2                move.w     D0, [A6 - 0x1E]
  437. 0000049E  B050                     cmp.w      D0, [A0]
  438. 000004A0  6700 00D4                beq        +0xD6 /* 00000576 */
  439. 000004A4  4EBA 017C                jsr        [PC + 0x17C /* 00000622 */]
  440. 000004A8  206E 0008                movea.l    A0, [A6 + 0x8]
  441. 000004AC  4A50                     tst.w      [A0]
  442. 000004AE  675A                     beq        +0x5C /* 0000050A */
  443. 000004B0  206E 0010                movea.l    A0, [A6 + 0x10]
  444. 000004B4  226E 0008                movea.l    A1, [A6 + 0x8]
  445. 000004B8  3011                     move.w     D0, [A1]
  446. 000004BA  5340                     subq.w     D0, 1
  447. 000004BC  48C0                     ext.l      D0
  448. 000004BE  81EE FFEA                divs.w     D0, [A6 - 0x16]
  449. 000004C2  C1FC 0023                muls.w     D0, 0x23 /* '#' */
  450. 000004C6  D050                     add.w      D0, [A0]
  451. 000004C8  5240                     addq.w     D0, 1
  452. 000004CA  3D40 FFF0                move.w     [A6 - 0x10], D0
  453. 000004CE  3D40 FFEC                move.w     [A6 - 0x14], D0
  454. 000004D2  206E 0010                movea.l    A0, [A6 + 0x10]
  455. 000004D6  226E 0008                movea.l    A1, [A6 + 0x8]
  456. 000004DA  3011                     move.w     D0, [A1]
  457. 000004DC  5340                     subq.w     D0, 1
  458. 000004DE  48C0                     ext.l      D0
  459. 000004E0  81EE FFEA                divs.w     D0, [A6 - 0x16]
  460. 000004E4  4840                     swap.w     D0
  461. 000004E6  C1FC 0043                muls.w     D0, 0x43 /* 'C' */
  462. 000004EA  D068 0002                add.w      D0, [A0 + 0x2]
  463. 000004EE  5240                     addq.w     D0, 1
  464. 000004F0  3D40 FFF2                move.w     [A6 - 0xE], D0
  465. 000004F4  3D40 FFEE                move.w     [A6 - 0x12], D0
  466. 000004F8  066E 0023 FFF0           addi.w     [A6 - 0x10], 0x23 /* '#' */
  467. 000004FE  066E 0043 FFF2           addi.w     [A6 - 0xE], 0x43 /* 'C' */
  468. 00000504  486E FFEC                pea.l      [A6 - 0x14]
  469. 00000508  A8A1                     syscall    FrameRect
  470. label0000050A:
  471. 0000050A  4A6E FFE2                tst.w      [A6 - 0x1E]
  472. 0000050E  6712                     beq        +0x14 /* 00000522 */
  473. 00000510  3F2E FFE2                move.w     -[A7], [A6 - 0x1E]
  474. 00000514  2F2E 0014                move.l     -[A7], [A6 + 0x14]
  475. 00000518  4EBA 00D8                jsr        [PC + 0xD8 /* 000005F2 */]
  476. 0000051C  5C8F                     addq.l     A7, 6
  477. 0000051E  4A40                     tst.w      D0
  478. 00000520  6608                     bne        +0xA /* 0000052A */
  479. label00000522:
  480. 00000522  206E 0008                movea.l    A0, [A6 + 0x8]
  481. 00000526  4250                     clr.w      [A0]
  482. 00000528  604C                     bra        +0x4E /* 00000576 */
  483. label0000052A:
  484. 0000052A  206E 0010                movea.l    A0, [A6 + 0x10]
  485. 0000052E  302E FFE4                move.w     D0, [A6 - 0x1C]
  486. 00000532  C1FC 0023                muls.w     D0, 0x23 /* '#' */
  487. 00000536  D050                     add.w      D0, [A0]
  488. 00000538  5240                     addq.w     D0, 1
  489. 0000053A  3D40 FFF0                move.w     [A6 - 0x10], D0
  490. 0000053E  3D40 FFEC                move.w     [A6 - 0x14], D0
  491. 00000542  206E 0010                movea.l    A0, [A6 + 0x10]
  492. 00000546  302E FFE6                move.w     D0, [A6 - 0x1A]
  493. 0000054A  C1FC 0043                muls.w     D0, 0x43 /* 'C' */
  494. 0000054E  D068 0002                add.w      D0, [A0 + 0x2]
  495. 00000552  5240                     addq.w     D0, 1
  496. 00000554  3D40 FFF2                move.w     [A6 - 0xE], D0
  497. 00000558  3D40 FFEE                move.w     [A6 - 0x12], D0
  498. 0000055C  066E 0023 FFF0           addi.w     [A6 - 0x10], 0x23 /* '#' */
  499. 00000562  066E 0043 FFF2           addi.w     [A6 - 0xE], 0x43 /* 'C' */
  500. 00000568  486E FFEC                pea.l      [A6 - 0x14]
  501. 0000056C  A8A1                     syscall    FrameRect
  502. 0000056E  206E 0008                movea.l    A0, [A6 + 0x8]
  503. 00000572  30AE FFE2                move.w     [A0], [A6 - 0x1E]
  504. label00000576:
  505. 00000576  486E FFD0                pea.l      [A6 - 0x30]
  506. 0000057A  A899                     syscall    SetPenState
  507. label0000057C:
  508. 0000057C  285F                     movea.l    A4, [A7]+
  509. 0000057E  245F                     movea.l    A2, [A7]+
  510. 00000580  4E5E                     unlink     A6
  511. 00000582  205F                     movea.l    A0, [A7]+
  512. 00000584  4FEF 0012                lea.l      A7, [A7 + 0x12]
  513. 00000588  4ED0                     jmp        [A0]
  514. fn0000058A:
  515. 0000058A  4E56 FFF8                link       A6, -0x0008
  516. 0000058E  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  517. 00000592  3F3C 0001                move.w     -[A7], 0x1
  518. 00000596  486E FFFE                pea.l      [A6 - 0x2]
  519. 0000059A  A93F                     syscall    GetItmIcon
  520. 0000059C  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  521. 000005A0  3F3C 0001                move.w     -[A7], 0x1
  522. 000005A4  486E FFFC                pea.l      [A6 - 0x4]
  523. 000005A8  A84E                     syscall    GetItemCmd
  524. 000005AA  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  525. 000005AE  3F3C 0001                move.w     -[A7], 0x1
  526. 000005B2  486E FFFA                pea.l      [A6 - 0x6]
  527. 000005B6  A943                     syscall    GetItmMark
  528. 000005B8  2F2E 0008                move.l     -[A7], [A6 + 0x8]
  529. 000005BC  3F3C 0001                move.w     -[A7], 0x1
  530. 000005C0  486E FFF8                pea.l      [A6 - 0x8]
  531. 000005C4  A941                     syscall    GetItmStyle
  532. 000005C6  7000                     moveq.l    D0, 0x00
  533. 000005C8  302E FFFE                move.w     D0, [A6 - 0x2]
  534. 000005CC  7218                     moveq.l    D1, 0x18
  535. 000005CE  E3A8                     lsl        D0, D1
  536. 000005D0  7200                     moveq.l    D1, 0x00
  537. 000005D2  322E FFFC                move.w     D1, [A6 - 0x4]
  538. 000005D6  7410                     moveq.l    D2, 0x10
  539. 000005D8  E5A9                     lsl        D1, D2
  540. 000005DA  8081                     or.l       D0, D1
  541. 000005DC  7200                     moveq.l    D1, 0x00
  542. 000005DE  322E FFFA                move.w     D1, [A6 - 0x6]
  543. 000005E2  E189                     lsl        D1, 8
  544. 000005E4  8081                     or.l       D0, D1
  545. 000005E6  7200                     moveq.l    D1, 0x00
  546. 000005E8  322E FFF8                move.w     D1, [A6 - 0x8]
  547. 000005EC  8081                     or.l       D0, D1
  548. 000005EE  4E5E                     unlink     A6
  549. 000005F0  4E75                     rts
  550. fn000005F2:
  551. 000005F2  4E56 0000                link       A6, 0
  552. 000005F6  0C6E 001F 000C           cmpi.w     [A6 + 0xC], 0x1F
  553. 000005FC  6E06                     bgt        +0x8 /* 00000604 */
  554. 000005FE  4A6E 000C                tst.w      [A6 + 0xC]
  555. 00000602  6C04                     bge        +0x6 /* 00000608 */
  556. label00000604:
  557. 00000604  7001                     moveq.l    D0, 0x01
  558. 00000606  6016                     bra        +0x18 /* 0000061E */
  559. label00000608:
  560. 00000608  206E 0008                movea.l    A0, [A6 + 0x8]
  561. 0000060C  2050                     movea.l    A0, [A0]
  562. 0000060E  2028 000A                move.l     D0, [A0 + 0xA]
  563. 00000612  322E 000C                move.w     D1, [A6 + 0xC]
  564. 00000616  E2A0                     asr        D0, D1
  565. 00000618  0280 0000 0001           andi.l     D0, 0x1
  566. label0000061E:
  567. 0000061E  4E5E                     unlink     A6
  568. 00000620  4E75                     rts
  569. fn00000622:
  570. 00000622  4E56 FFFC                link       A6, -0x0004
  571. 00000626  4267                     clr.w      -[A7]
  572. 00000628  4879 6865 6C70           push.l     0x68656C70 /* 'help' */
  573. 0000062E  486E FFFC                pea.l      [A6 - 0x4]
  574. 00000632  4EBA 002E                jsr        [PC + 0x2E /* 00000662 */]
  575. 00000636  301F                     move.w     D0, [A7]+
  576. 00000638  4A40                     tst.w      D0
  577. 0000063A  6622                     bne        +0x24 /* 0000065E */
  578. 0000063C  202E FFFC                move.l     D0, [A6 - 0x4]
  579. 00000640  0800 0000                btst.b     D0, 0x0
  580. 00000644  6718                     beq        +0x1A /* 0000065E */
  581. 00000646  4267                     clr.w      -[A7]
  582. 00000648  303C 0003                move.w     D0, 0x3
  583. 0000064C  A830                     syscall    Pack14
  584. 0000064E  101F                     move.b     D0, [A7]+
  585. 00000650  4A00                     tst.b      D0
  586. 00000652  670A                     beq        +0xC /* 0000065E */
  587. 00000654  4267                     clr.w      -[A7]
  588. 00000656  303C 0002                move.w     D0, 0x2
  589. 0000065A  A830                     syscall    Pack14
  590. 0000065C  301F                     move.w     D0, [A7]+
  591. label0000065E:
  592. 0000065E  4E5E                     unlink     A6
  593. 00000660  4E75                     rts
  594. fn00000662:
  595. 00000662  4E56 0000                link       A6, 0
  596. 00000666  203C 0000 A89F           move.l     D0, 0xA89F
  597. 0000066C  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  598. 0000066E  2F08                     move.l     -[A7], A0
  599. 00000670  203C 0000 A0AD           move.l     D0, 0xA0AD
  600. 00000676  A346                     syscall    GetOSTrapAddress, flags=3
  601. 00000678  B1DF                     cmpa.l     A0, [A7]+
  602. 0000067A  670E                     beq        +0x10 /* 0000068A */
  603. 0000067C  202E 000C                move.l     D0, [A6 + 0xC]
  604. 00000680  A1AD                     syscall    Gestalt, flags=1
  605. 00000682  226E 0008                movea.l    A1, [A6 + 0x8]
  606. 00000686  2288                     move.l     [A1], A0
  607. 00000688  6026                     bra        +0x28 /* 000006B0 */
  608. label0000068A:
  609. 0000068A  41FA 0036                lea.l      A0, [PC + 0x36 /* 000006C2, value 0x76657273 'vers' */]
  610. 0000068E  303C EA51                move.w     D0, 0xEA51
  611. 00000692  222E 000C                move.l     D1, [A6 + 0xC]
  612. label00000696:
  613. 00000696  B298                     cmp.l      D1, [A0]+
  614. 00000698  6706                     beq        +0x8 /* 000006A0 */
  615. 0000069A  4A98                     tst.l      [A0]+
  616. 0000069C  6712                     beq        +0x14 /* 000006B0 */
  617. 0000069E  60F6                     bra        -0x8 /* 00000696 */
  618. label000006A0:
  619. 000006A0  43FA 0020                lea.l      A1, [PC + 0x20 /* 000006C2, value 0x76657273 'vers' */]
  620. 000006A4  D3D0                     add.l      A1, [A0]
  621. 000006A6  4ED1                     jmp        [A1]
  622. label000006A8:
  623. 000006A8  226E 0008                movea.l    A1, [A6 + 0x8]
  624. 000006AC  2280                     move.l     [A1], D0
  625. 000006AE  4240                     clr.w      D0
  626. label000006B0:
  627. 000006B0  3D40 0010                move.w     [A6 + 0x10], D0
  628. 000006B4  4E5E                     unlink     A6
  629. 000006B6  205F                     movea.l    A0, [A7]+
  630. 000006B8  508F                     addq.l     A7, 8
  631. 000006BA  4ED0                     jmp        [A0]
  632. label000006BC:
  633. 000006BC  303C EA52                move.w     D0, 0xEA52
  634. 000006C0  60EE                     bra        -0x10 /* 000006B0 */
  635. 000006C2  7665                     moveq.l    D3, 0x65
  636. 000006C4  7273                     moveq.l    D1, 0x73
  637. 000006C6  0000 0060                ori.b      D0, 0x60 /* '`' */
  638. 000006CA  6D61                     blt        +0x63 /* 0000072D */
  639. 000006CC  6368                     bls        +0x6A /* 00000736 */
  640. 000006CE  0000 0064                ori.b      D0, 0x64 /* 'd' */
  641. 000006D2  7379                     moveq.l    D1, 0x79
  642. 000006D4  7376                     moveq.l    D1, 0x76
  643. 000006D6  0000 0070                ori.b      D0, 0x70 /* 'p' */
  644. 000006DA  7072                     moveq.l    D0, 0x72
  645. 000006DC  6F63                     ble        +0x65 /* 00000741 */
  646. 000006DE  0000 007A                ori.b      D0, 0x7A /* 'z' */
  647. 000006E2  6670                     bne        +0x72 /* 00000754 */
  648. 000006E4  7520                     moveq.l    D2, 0x20
  649. 000006E6  0000 0086                ori.b      D0, 0x86
  650. 000006EA  7164                     moveq.l    D0, 0x64
  651. 000006EC  2020                     move.l     D0, -[A0]
  652. 000006EE  0000 00D0                ori.b      D0, 0xD0
  653. 000006F2  6B62                     bmi        +0x64 /* 00000756 */
  654. 000006F4  6420                     bcc        +0x22 /* 00000716 */
  655. 000006F6  0000 0102                ori.b      D0, 0x2
  656. 000006FA  6174                     bsr        +0x76 /* 00000770 */
  657. 000006FC  6C6B                     bge        +0x6D /* 00000769 */
  658. 000006FE  0000 012A                ori.b      D0, 0x2A /* '*' */
  659. 00000702  6D6D                     blt        +0x6F /* 00000771 */
  660. 00000704  7520                     moveq.l    D2, 0x20
  661. 00000706  0000 014C                ori.b      D0, 0x4C /* 'L' */
  662. 0000070A  7261                     moveq.l    D1, 0x61
  663. 0000070C  6D20                     blt        +0x22 /* 0000072E */
  664. 0000070E  0000 0170                ori.b      D0, 0x70 /* 'p' */
  665. 00000712  6C72                     bge        +0x74 /* 00000786 */
  666. 00000714  616D                     bsr        +0x6F /* 00000783 */
  667. label00000716:
  668. 00000716  0000 0170                ori.b      D0, 0x70 /* 'p' */
  669. 0000071A  0000 0000                ori.b      D0, 0x0
  670. 0000071E  0000 0000                ori.b      D0, 0x0
  671. 00000722  7001                     moveq.l    D0, 0x01
  672. 00000724  6082                     bra        -0x7C /* 000006A8 */
  673. 00000726  7000                     moveq.l    D0, 0x00
  674. 00000728  1038 0CB3                move.b     D0, [0x00000CB3 /* MMUFluff/MachineType */]
  675. 0000072C  5C80                     addq.l     D0, 6
  676. label0000072E:
  677. 0000072E  6000 FF78                bra        -0x86 /* 000006A8 */
  678. 00000732  7000                     moveq.l    D0, 0x00
  679. 00000734  3038 015A                move.w     D0, [0x0000015A /* SysVersion */]
  680. // begin alternate branch 00000736-00000738
  681. label00000736:
  682. 00000736  015A                     bchg       [A2]+, D0
  683. // end alternate branch 00000736-00000738
  684. label00000736: // (misaligned)
  685. 00000738  6000 FF6E                bra        -0x90 /* 000006A8 */
  686. 0000073C  7000                     moveq.l    D0, 0x00
  687. 0000073E  1038 012F                move.b     D0, [0x0000012F /* CPUFlag */]
  688. 00000742  5240                     addq.w     D0, 1
  689. 00000744  6000 FF62                bra        -0x9C /* 000006A8 */
  690. 00000748  0C38 0004 012F           cmpi.b     [0x0000012F /* CPUFlag */], 0x4
  691. 0000074E  6738                     beq        +0x3A /* 00000788 */
  692. 00000750  0838 0004 0B22           btst.b     [0x00000B22 /* HWCfgFlags */], 0x4
  693. // begin alternate branch 00000754-00000756
  694. label00000754:
  695. 00000754  0B22                     btst       -[A2], D5
  696. // end alternate branch 00000754-00000756
  697. label00000754: // (misaligned)
  698. label00000756:
  699. 00000756  6734                     beq        +0x36 /* 0000078C */
  700. 00000758  204F                     movea.l    A0, A7
  701. 0000075A  F280                     .extension 0x280 // unimplemented
  702. 0000075C  0000 F327                ori.b      D0, 0x27 /* '\'' */
  703. 00000760  3017                     move.w     D0, [A7]
  704. 00000762  2E48                     movea.l    A7, A0
  705. 00000764  0C40 1F18                cmpi.w     D0, 0x1F18
  706. 00000768  6716                     beq        +0x18 /* 00000780 */
  707. 0000076A  0C40 3F18                cmpi.w     D0, 0x3F18
  708. 0000076E  6710                     beq        +0x12 /* 00000780 */
  709. fn00000770:
  710. 00000770  0C40 3F38                cmpi.w     D0, 0x3F38 /* '?8' */
  711. 00000774  670E                     beq        +0x10 /* 00000784 */
  712. 00000776  0C40 1F38                cmpi.w     D0, 0x1F38
  713. 0000077A  6708                     beq        +0xA /* 00000784 */
  714. 0000077C  7000                     moveq.l    D0, 0x00
  715. 0000077E  600E                     bra        +0x10 /* 0000078E */
  716. label00000780:
  717. 00000780  7001                     moveq.l    D0, 0x01
  718. 00000782  600A                     bra        +0xC /* 0000078E */
  719. label00000784:
  720. 00000784  7002                     moveq.l    D0, 0x02
  721. label00000786:
  722. 00000786  6006                     bra        +0x8 /* 0000078E */
  723. label00000788:
  724. 00000788  7003                     moveq.l    D0, 0x03
  725. 0000078A  6002                     bra        +0x4 /* 0000078E */
  726. label0000078C:
  727. 0000078C  7000                     moveq.l    D0, 0x00
  728. label0000078E:
  729. 0000078E  6000 FF18                bra        -0xE6 /* 000006A8 */
  730. 00000792  0C78 3FFF 028E           cmpi.w     [0x0000028E /* ROM85 */], 0x3FFF
  731. 00000798  6E1C                     bgt        +0x1E /* 000007B6 */
  732. 0000079A  303C A89F                move.w     D0, 0xA89F
  733. 0000079E  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  734. 000007A0  2408                     move.l     D2, A0
  735. 000007A2  203C 0000 AB03           move.l     D0, 0xAB03
  736. 000007A8  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  737. 000007AA  203C 0000 0100           move.l     D0, 0x100
  738. 000007B0  B488                     cmp.l      D2, A0
  739. 000007B2  6606                     bne        +0x8 /* 000007BA */
  740. 000007B4  600A                     bra        +0xC /* 000007C0 */
  741. label000007B6:
  742. 000007B6  7000                     moveq.l    D0, 0x00
  743. 000007B8  6006                     bra        +0x8 /* 000007C0 */
  744. label000007BA:
  745. 000007BA  203C 0000 0200           move.l     D0, 0x200
  746. label000007C0:
  747. 000007C0  6000 FEE6                bra        -0x118 /* 000006A8 */
  748. 000007C4  1038 021E                move.b     D0, [0x0000021E /* KbdType */]
  749. 000007C8  41FA 0016                lea.l      A0, [PC + 0x16 /* 000007E0, value 0x3130B02 */]
  750. 000007CC  2248                     movea.l    A1, A0
  751. label000007CE:
  752. 000007CE  1218                     move.b     D1, [A0]+
  753. 000007D0  6700 FEEA                beq        -0x114 /* 000006BC */
  754. 000007D4  B200                     cmp.b      D1, D0
  755. 000007D6  66F6                     bne        -0x8 /* 000007CE */
  756. 000007D8  91C9                     sub.l      A0, A1
  757. 000007DA  2008                     move.l     D0, A0
  758. 000007DC  6000 FECA                bra        -0x134 /* 000006A8 */
  759. 000007E0  0313                     btst       [A3], D1
  760. 000007E2  0B02                     btst       D2, D5
  761. 000007E4  0106                     btst       D6, D0
  762. 000007E6  0704                     btst       D4, D3
  763. 000007E8  0508                     btst       A0, D2
  764. 000007EA  0900                     btst       D0, D4
  765. 000007EC  7000                     moveq.l    D0, 0x00
  766. 000007EE  4A38 0291                tst.b      [0x00000291 /* PortBUse */]
  767. 000007F2  6B16                     bmi        +0x18 /* 0000080A */
  768. 000007F4  1238 01FB                move.b     D1, [0x000001FB /* SPConfig */]
  769. 000007F8  0201 000F                andi.b     D1, 0xF
  770. 000007FC  0C01 0001                cmpi.b     D1, 0x1
  771. 00000800  6608                     bne        +0xA /* 0000080A */
  772. 00000802  2078 02DC                movea.l    A0, [0x000002DC /* ABusDCE */]
  773. 00000806  1028 0007                move.b     D0, [A0 + 0x7]
  774. label0000080A:
  775. 0000080A  6000 FE9C                bra        -0x162 /* 000006A8 */
  776. 0000080E  0C38 0002 012F           cmpi.b     [0x0000012F /* CPUFlag */], 0x2
  777. 00000814  6D16                     blt        +0x18 /* 0000082C */
  778. 00000816  7000                     moveq.l    D0, 0x00
  779. 00000818  1038 0CB1                move.b     D0, [0x00000CB1 /* MMUType */]
  780. 0000081C  0C00 0001                cmpi.b     D0, 0x1
  781. 00000820  670C                     beq        +0xE /* 0000082E */
  782. 00000822  0C00 0003                cmpi.b     D0, 0x3
  783. 00000826  6D04                     blt        +0x6 /* 0000082C */
  784. 00000828  5340                     subq.w     D0, 1
  785. 0000082A  6002                     bra        +0x4 /* 0000082E */
  786. label0000082C:
  787. 0000082C  7000                     moveq.l    D0, 0x00
  788. label0000082E:
  789. 0000082E  6000 FE78                bra        -0x186 /* 000006A8 */
  790. 00000832  303C A89F                move.w     D0, 0xA89F
  791. 00000836  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  792. 00000838  2408                     move.l     D2, A0
  793. 0000083A  203C 0000 A88F           move.l     D0, 0xA88F
  794. 00000840  A746                     syscall    GetToolBoxTrapAddress/GetToolTrapAddress, flags=7
  795. 00000842  2038 0108                move.l     D0, [0x00000108 /* MemTop */]
  796. 00000846  B488                     cmp.l      D2, A0
  797. 00000848  670A                     beq        +0xC /* 00000854 */
  798. 0000084A  598F                     subq.l     A7, 4
  799. 0000084C  3F3C 0016                move.w     -[A7], 0x16
  800. 00000850  A88F                     syscall    OSDispatch
  801. 00000852  201F                     move.l     D0, [A7]+
  802. label00000854:
  803. 00000854  6000 FE52                bra        -0x1AC /* 000006A8 */
  804. 00000858  0000                     .incomplete
  805.